#define _CRT_SECURE_NO_WARNINGS 1

#include "SeqList.h"

void TestSL1()
{
	SL sl1;

	SLInit(&sl1);

	SLPushBack(&sl1, 1);
	SLPushBack(&sl1, 12);
	SLPushBack(&sl1, 2);
	SLPushBack(&sl1, 3);
	SLPushBack(&sl1, 4);

	SLPrint(&sl1);

	SLPopBack(&sl1);
	SLPopBack(&sl1);

	SLPrint(&sl1);

	SLDestroy(&sl1);
}

void TestSL2()
{
	SL sl1;

	SLInit(&sl1);

	SLPushFront(&sl1, 4);
	SLPushBack(&sl1, 1);
	SLPushBack(&sl1, 12);
	SLInsert(&sl1, 2, 1231);
	SLPushFront(&sl1, 5);

	SLPrint(&sl1);

	SLErase(&sl1, 3);
	SLErase(&sl1, 2);

	SLPrint(&sl1);

	SLDestroy(&sl1);
}

int main()
{
	TestSL2();

	return 0;
}